home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / FAQs / SGIfaqs / SGI-Graphics-faq < prev    next >
Internet Message Format  |  1994-08-01  |  63KB

  1. Xref: odin comp.sys.sgi.misc:9151 comp.answers:4795 news.answers:20652
  2. From: sgi-faq@viz.tamu.edu (The SGI FAQ group)
  3. Newsgroups: comp.sys.sgi.misc,comp.answers,news.answers
  4. Subject: SGI graphics Frequently Asked Questions (FAQ)
  5. Supersedes: <graphics_764182743@viz.tamu.edu>
  6. Followup-To: comp.sys.sgi.misc
  7. Date: 6 Apr 1994 20:11:56 GMT
  8. Organization: Visualization Lab, Texas A&M University
  9. Lines: 1660
  10. Expires: 4 May 1994 20:11:14 GMT
  11. Reply-To: sgi-faq@viz.tamu.edu (The SGI FAQ group)
  12. NNTP-Posting-Host: viz.tamu.edu
  13. Originator: sgi-faq@viz
  14.  
  15. Archive-name: sgi/faq/graphics
  16. Last-modified: Wed Mar  9 16:12:38 CST 1994
  17.  
  18.     SGI graphics Frequently Asked Questions (FAQ)
  19.  
  20. This is one of the Silicon Graphics FAQ series, which consists of:
  21.  
  22.     SGI admin FAQ - IRIX system administration
  23.     SGI apps FAQ - Applications & compilers
  24.     SGI graphics FAQ - Graphics and user environment customization
  25.     SGI hardware FAQ - Hardware
  26.     SGI misc FAQ - Introduction & miscellaneous information
  27.     SGI performer FAQ - IRIS Performer
  28.     SGI pointer FAQ - Pointer to the other FAQs
  29.  
  30. Read the misc FAQ for information about the FAQs themselves.  Each FAQ
  31. is posted to comp.sys.sgi.misc and to the news.answers and comp.answers
  32. newsgroups (whose purpose is to store FAQs) twice per month.  If you
  33. can't find one of the FAQs with your news program, you can get it by
  34. anonymous FTP from one of these sites:
  35.  
  36.     rtfm.mit.edu:/pub/usenet/comp.sys.sgi.misc/
  37.     rtfm.mit.edu:/pub/usenet/news.answers/sgi/faq/
  38.     rtfm.mit.edu:/pub/usenet/comp.answers/sgi/faq/
  39.     viz.tamu.edu:/pub/sgi/faq/
  40.  
  41. Note that rtfm.mit.edu is home to many other FAQs and informational
  42. documents, and is a good place to look if you can't find an answer
  43. here. If you can't use FTP, send mail to mail-server@rtfm.mit.edu with
  44. the command 'send usenet/news.answers/ftp-list/faq' on a line by itself
  45. in the text, and it will send you a document describing how to FTP by
  46. mail. You can also read a hypertext version of the FAQs at
  47.  
  48.     http://www.cis.ohio-state.edu/hypertext/faq/usenet/sgi/top.html
  49.  
  50. The SGI FAQs are freely distributable and wide circulation is encouraged.
  51. The contents are accurate as far as we know, but the usual disclaimers
  52. apply. Please send additions and changes to sgi-faq@viz.tamu.edu.
  53.  
  54. Topics covered in this FAQ:
  55. ---------------------------
  56.    -1- What books about the X Window System and OSF/Motif do you
  57.        recommend?
  58.    -2- Sun XView applications like "mailtool" hang my X server in 4.0.5.
  59.        They come up fine, but as soon as I click on them the server
  60.        freezes.
  61.    -3- Why am I getting DGL errors when I try to display a GL program?
  62.    -4- After running a few programs, the colors change as the cursor
  63.        moves. The colors are usually all wrong in other windows.
  64.    -5- How can I change my X Server to use a 12-bit PseudoColor, 12-bit
  65.        TrueColor, or 24-bit TrueColor visual by default?
  66.    -6- Why doesn't my X server use backing store? How can I turn it on?
  67.    -7- The library /usr/lib/libgl_s.a isn't on my R4000 Indigo. Where is
  68.        it?
  69.    -8- How do I run a program on one machine and display it on another?
  70.    -9- Does the DISPLAY environment variable work for GL applications?
  71.   -10- The DISPLAY variable doesn't seem to work.  Why?
  72.   -11- Can I save my screen layout?
  73.   -12- Sometimes an extra 4Dwm is running, using a lot of the CPU.  Is
  74.        this necessary?
  75.   -13- I'm running IRIX 4.0.1, and can't log in correctly. After logging
  76.        in the screen turns blue then goes back to Pandora.
  77.   -14- How do I run 'xinit' manually, (not automatically from 'xdm')?
  78.   -15- How do I start X on a remote host with no users logged in?
  79.   -16- What do the errors in my 'xdm-errors' file mean?
  80.   -17- How do I log into pandora without bringing up graphics?
  81.   -18- How do I start and stop the graphics system?
  82.   -19- How can I kill the X server without logging in or rebooting?
  83.   -20- Pandora won't come up, and /usr/adm/SYSLOG says "helvetica font
  84.        missing"
  85.   -21- How do I restart the console?
  86.   -22- What are resources?
  87.   -23- How do I set resources?
  88.   -24- How do I know what resources I can set for an application?
  89.   -25- How do I run the same program twice with different attributes?
  90.   -26- Does the GL recognize resources?
  91.   -27- How can I emulate a Meta key using xwsh?
  92.   -28- How do I find out what fonts are available?
  93.   -29- Does SGI provide any tools to help with the customization
  94.        process?
  95.   -30- What is a good approach to take in looking for resources?
  96.   -31- What is the precedence for resource files?
  97.   -32- What files affect the window manager and what is their
  98.        relationship to each other?
  99.   -33- Do I need my own .4Dwmrc file?
  100.   -34- Can I run different window managers?
  101.   -35- How do I choose a different window manager as the default?
  102.   -36- Where can I learn more about the Window Manager behavior?
  103.   -37- How do I recover from a failed window manager customization
  104.        attempt?
  105.   -38- What is the difference between .xsession and .sgisession?
  106.   -39- After copying /usr/lib/X11/xdm/Xsession to .xsession, I can't log
  107.        in.
  108.   -40- What are the important login and resource files for IRIX 4D1-4.0?
  109.   -41- What is the sequence of events that occur at login time?
  110.   -42- Why do 4Dwm, toolchest, Workspace, etc. not recognize an
  111.        environment variable I set in my shell's startup files?
  112.   -43- Why doesn't the window manager's "Log Out" routine work?
  113.   -44- Where is the default value of PATH set?
  114.   -45- How can I convert RGB bitmaps to & from other formats?
  115.   -46- Can I compress RGB bitmaps?
  116.   -47- How do I make a screen dump?
  117.   -48- Can I use 4Dgifts code in my application?
  118.   -49- What does ERR_WMANIPC mean?
  119.   -50- How can I translate screen (x,y) coords into world (x,y,z)
  120.        coords?
  121.   -51- How can I translate world (x,y,z) coords into screen (x,y)
  122.        coords?
  123.   -52- I call mapcolor(index, R, G, B) but nothing happens.  Why?
  124.   -53- What's wrong with blink()?
  125.   -54- When I try to run UIM/X uxserverd, I get an error message saying,
  126.        "license file has been modified, cannot start the UIM/X license
  127.        server".
  128.   -55- What is a GL widget?
  129.   -56- I'm using the GlxMDraw widget and it doesn't seem that colors are
  130.        being installed correctly.  Overlays in the GlxMDraw widget are
  131.        displayed in red and gray instead of the colors I specify.  What
  132.        is the problem?
  133.   -57- I get a "Broken Pipe" error when I close the window of an X
  134.        client, such as xman or xterm.  What does this error mean?  Is
  135.        there something wrong with my system?
  136.   -58- Is there a way to switch on the fly between single and double
  137.        buffering within a GL widget?
  138.   -59- Why doesn't SGI's xlock lock my screen?
  139.   -60- What about Inventor?
  140.   -61- Why do I get compilation errors when compiling the Inventor C++
  141.        examples, using C++ 3.0?
  142.   -62- Why does the X server sometimes abort when I log out in IRIX
  143.        5.0.1 and IRIX 5.1?
  144.  
  145. ----------------------------------------------------------------------
  146.  
  147. Subject:    -1- What books about the X Window System and OSF/Motif do
  148.                 you recommend?
  149. Date: 07 May 93 00:00:01 EST
  150.  
  151. Introductory Texts on the X Window System
  152.  
  153. - O'Reilly and Associates Inc., "The Definitive Guides to the X Window
  154.   System", by Valerie Quercia and Tim O'Reilly. Vol.  3, "X Window
  155.   System User's Guide", Sebastopol, CA., 1988, 1989.
  156.  
  157.   Discusses being an end user of the X window system.  Covers topics
  158.   like window manages, font specifications, standard X clients and
  159.   resources.
  160.  
  161. Texts on X Window System Programming
  162.  
  163. - O'Reilly and Associates, Inc. "The Definitive Guides to the X Window
  164.   System", by Adrian Nye. Vol. 1, "Xlib Programming Manual",
  165.   Sebastopol, CA, 1990.
  166.  
  167.   Contains the introductory elements for programming with the Xlib, the
  168.   lowest level of the X window system.  Discusses concepts such as X
  169.   color capacities, windows, events, drawing primitives.
  170.  
  171. - Young, Douglas A., "X Window Systems Programming and Applications
  172.   with Xt" (OSF/Motif Edition). Prentice Hall. Englewood Cliffs, NJ.
  173.   1990.
  174.  
  175.   A thorough book starting with the basics of programming with a
  176.   toolkit though advanced topics.  Contains source code for several
  177.   small complete applications.  (Source code for this book is also
  178.   available on line in the /usr/src directory of the Motif Development
  179.   option.)
  180.  
  181. - O'Reilly and Associates Inc., "The Definitive Guides to the X Window
  182.   System", by Adrian Nye and Tim O'Reilly. Vol. 4, "X Toolkit
  183.   Intrinsics Programming Manual", Sebastopol, CA., 1990.
  184.  
  185.   Another reference for programming with the OSF/Motif toolkit.  Covers
  186.   topics including basic programming, widgets, resources, and more
  187.   advanced topics.
  188.  
  189. Reference Texts for the X Window System :
  190.  
  191. - O'Reilly and Associates Inc., "The Definitive Guides to the X Window
  192.   System", by Adrian Nye. Vol. 2, "Xlib Reference Manual", Sebastopol,
  193.   CA., 1988.
  194.  
  195.   Complete reference for Xlib library routines.
  196.  
  197. - Scheifler, Robert and James Gettys, X Window System, Second Edition,
  198.   Digital Press, 1990.  ISBN 1-55558-050-5.
  199.  
  200.   Referred to as "the Bible" of Xlib and X Protocol reference.
  201.  
  202. Reference Texts for the OSF/Motif Toolkit :
  203.  
  204. - Open Software Foundation, "OSF/Motif Programmer's Guide". Release
  205.   1.1, Prentice Hall. Englewood Cliffs, NJ. 1990.
  206.  
  207.   Exhaustive reference of every widget in the OSF/Motif library.
  208.  
  209. - Asente, Paul J. and Ralph R. Swick. "X Window System Toolkit".
  210.   X Version 11, Release 4. Digital Press. 1990.
  211.  
  212.   Very in-depth reference to the structure and operation of
  213.   an X window system toolkit.
  214.  
  215. ------------------------------
  216.  
  217. Subject:    -2- Sun XView applications like "mailtool" hang my X server
  218.                 in 4.0.5.  They come up fine, but as soon as I click on
  219.                 them the server freezes.
  220. Date: 07 May 93 00:00:01 EST
  221.  
  222. Any XView application run under the Xsgi X11-server shipped in
  223. IRIX versions 4.0.5A through 4.0.5G will lock the X Server on 
  224. the first mouse click and will not release it until killed from 
  225. somewhere else.  Fortunately there is a workaround:
  226.  
  227. a) Run the application with '-Wfsdb' on the command line.
  228.    Alternatively you could use '-fullscreendebug'.  For example:
  229.  
  230.    % mailtool -Wfsdb
  231.  
  232. b) If you have the sources, add
  233.  
  234.      extern int fullscreendebug;
  235.  
  236.    before main() and
  237.  
  238.      fullscreendebug = 1;
  239.  
  240.    after the xv_init() call.  This forces the program to set this flag
  241.    in any case - even when run with non-SGI X servers.  It releases you
  242.    of the danger of omitting -Wfsdb and locking your screen.
  243.  
  244. c) if the program uses the 'fullscreen' package, you might add
  245.  
  246.        Fullscreen.Debug: True
  247.  
  248.    in $HOME/.Xresources or specify this resource on the command line.
  249.    This flag currently disables grabs in both the 'window' and the
  250.    'fullscreen' package, but is only set from resources in the
  251.    'fullscreen' package.
  252.  
  253. ------------------------------
  254.  
  255. Subject:    -3- Why am I getting DGL errors when I try to display a GL
  256.                 program?
  257. Date: 20 Feb 94 00:00:01 EST
  258.  
  259. - You may be trying to display on a non-SGI machine which doesn't have
  260.   GL/DGL. (Most don't, yet.) Presently the only way around this is to
  261.   buy a third-party GL emulator for the non-SGI machine.
  262.  
  263. - DGL may be disabled in /etc/services and/or /usr/etc/inetd.conf
  264.   (/etc/inetd.conf in IRIX 5.x). The former file should have a line
  265.   reading
  266.  
  267.     sgi-dgl         5232/tcp
  268.  
  269.   and the latter should have a line reading
  270.  
  271.     sgi-dgl stream  tcp   nowait  root   /usr/etc/dgld  dgld -IM -tDGLTSOCKET
  272.  
  273.   If either is commented out, remove the comment.
  274.  
  275. - You may be trying to display on a machine with a much older version
  276.   of IRIX. Try another machine with a newer IRIX.
  277.  
  278. - You may have set the DISPLAY enviroment variable incorrectly.
  279.  
  280. - The machine on which you're displaying may have disallowed access.
  281.   Do 'xhost +yourmachine' to give 'yourmachine' access to the display.
  282.  
  283. An article in the Jan/Feb 93 Pipeline describes the above in great
  284. detail.
  285.  
  286. ------------------------------
  287.  
  288. Subject:    -4- After running a few programs, the colors change as the
  289.                 cursor moves. The colors are usually all wrong in other
  290.                 windows.
  291. Date: 07 May 93 00:00:01 EST
  292.  
  293. This is known as colormap flashing. It is caused by the server
  294. maintaining 2 separate colormaps, one for GL windows and one for X
  295. windows.  As the cursor moves around, the window manager will install
  296. the correct colormap for each window.  This will cause colors to be
  297. wrong in other windows.  For more information on colormaps and
  298. installation please see the Xlib Programming manual, chapter 7 (Vol I
  299. of the O'Reilly series).
  300.  
  301. You can sometimes avoid colormap flashing by configuring your X Server
  302. to use a 12-bit or 24-bit visual by default.
  303.  
  304. ------------------------------
  305.  
  306. Subject:    -5- How can I change my X Server to use a 12-bit
  307.                 PseudoColor, 12-bit TrueColor, or 24-bit TrueColor
  308.                 visual by default?
  309. Date: 07 May 93 00:00:01 EST
  310.  
  311. By default, the SGI X Server is configured to use an 8-bit PseudoColor
  312. visual.  X-based applications can request other visuals directly if
  313. they are available.  Alternatively, you can change the default visual
  314. by performing the following steps:
  315.  
  316. a) Run "/usr/bin/X11/xdpyinfo" and check that your server is
  317.    capable of using a 12-bit or 24-bit visual.  If it is,
  318.    you will see lines similar to the following:
  319.  
  320.    visual id, max buffers, depth:    0x28, 0, 12
  321.    visual id, max buffers, depth:    0x29, 0, 12
  322.    visual id, max buffers, depth:    0x2a, 0, 24
  323.  
  324.    The last number on each line represents the number of
  325.    bits available for that visual.
  326.     
  327. b) Log in as root
  328.  
  329. c) Edit the file /usr/lib/X11/xdm/Xservers.  By default it
  330.    will contain the string:
  331.      :0 secure /usr/bin/X11/X -bs -c -pseudomap 4sight
  332.    for a 24-bit TrueColor visual change it to:
  333.      :0 secure /usr/bin/X11/X -bs -c -class TrueColor -depth 24
  334.    for a 12-bit PseudoColor visual change it to:
  335.      :0 secure /usr/bin/X11/X -bs -c -class PseudoColor -depth 12
  336.  
  337. d) Restart your X server.  You can do this by invoking either
  338.    of the following commands:
  339.  
  340.    % killall -TERM Xsgi
  341.  
  342.    % /usr/gfx/stopgfx; /usr/gfx/startgfx
  343.  
  344. Note:  X Server visuals are an advanced topic; before making the above
  345. changes you should be aware that some 3rd-party and freeware
  346. applications might not gracefully adapt to an X Server which supplies
  347. anything but an 8-bit PseudoColor visual by default.
  348.  
  349. ------------------------------
  350.  
  351. Subject:    -6- Why doesn't my X server use backing store? How can I
  352.                 turn it on?
  353. Date: 12 Feb 94 00:00:01 EST
  354.  
  355. Mark Kilgard of SGI <mjk@hoot.asd.sgi.com> writes,
  356. SGI ships its X server with backing store disabled.  If you edit
  357. /usr/lib/X11/xdm/Xservers and remove the -bs option, then restart the X
  358. server, backing store will be available.
  359.  
  360. The reason for not turning on backing store by default is two-fold.
  361.  
  362. 1) In IRIX 4.0.X the code for managing overlay planes didn't properly
  363.    take overlays into account so backing store doesn't work if you have
  364.    overlay windows on the screen. This is fixed n IRIX 5.x.
  365.  
  366. 2) In most cases, backing store hurts your performance.  It cases ALL X
  367.    rendering operations to make an extra (small) traversal through
  368.    backing store code even if backing store isn't in use.  Also when
  369.    backing store is in use, it tends to grow the X server since a large
  370.    amount of memory can easily be used to maintain backing store.
  371.  
  372. One alternative to backing store is to render your image to a pixmap
  373. and then blit from the pixmap to the screen in response to expose
  374. events.  This will stress the X server a great deal less than using
  375. backing store.  Additionally, make sure you are compressing expose
  376. events when you redraw.
  377.  
  378. ------------------------------
  379.  
  380. Subject:    -7- The library /usr/lib/libgl_s.a isn't on my R4000 Indigo.
  381.                 Where is it?
  382. Date: 07 May 93 00:00:01 EST
  383.  
  384. It's in the "maint" software, in the maint_gl_x_dev package.
  385.  
  386. ------------------------------
  387.  
  388. Subject:    -8- How do I run a program on one machine and display it on
  389.                 another?
  390. Date: 07 May 93 00:00:01 EST
  391.  
  392. Use the DISPLAY environment variable to specify the remote host on
  393. which you want the X client to be displayed; then invoke the
  394. appplication.
  395.  
  396. To specify the remote host,
  397.  
  398.   setenv DISPLAY <destination>:0
  399.  
  400. where <destination> is the name or IP address of the remote host.
  401. To specify the local host (console),
  402.  
  403.   setenv DISPLAY :0
  404.  
  405. ------------------------------
  406.  
  407. Subject:    -9- Does the DISPLAY environment variable work for GL
  408.                 applications?
  409. Date: 07 May 93 00:00:01 EST
  410.  
  411. Yes.  Iris GL programs display on the machine specified by the DISPLAY
  412. environment variable.  This occurs because the GL now uses the
  413. Distributed Graphics Library (DGL) capabilities by default.  It is
  414. important to remember that only Silicon Graphics' machines can display
  415. GL.  For networks running NIS (formerly yellow pages), it is sometimes
  416. necessary to add the flag "-lsun" when compiling.
  417.  
  418. ------------------------------
  419.  
  420. Subject:   -10- The DISPLAY variable doesn't seem to work.  Why?
  421. Date: 07 May 93 00:00:01 EST
  422.  
  423. There are several possibilities.  First, check your DISPLAY variable to
  424. make sure it is syntactically correct.  For example, to display
  425. applications on a machine named "enterprise" whose IP address is
  426. 123.45.678.90, it should be set to "enterprise:0" or
  427. "123.45.678.90:0".
  428.  
  429. Also, try to "ping" the machine to which your DISPLAY variable is set.
  430. If this does not work, you have either specified an invalid hostname,
  431. the host is down, or you are having network problems.
  432.  
  433. Sometimes, when trying to display to a remote server, you see messages
  434. like "permission denied" or "can't connect to server".  To solve
  435. permission problems, you need to disable access control on the remote
  436. server using the xhost command.  By default, access control is disabled
  437. on Silicon Graphics' machines.
  438.  
  439. For more information see Chapter 3 of the X Window System User's Guide,
  440. (Vol. 3 of the O'Reilly series)
  441.  
  442. If NIS is used, make sure the client is linked with "-lsun".
  443.  
  444. ------------------------------
  445.  
  446. Subject:   -11- Can I save my screen layout?
  447. Date: 07 May 93 00:00:01 EST
  448.  
  449. Not very easily.  You must run "xwininfo" to find the X and Y position
  450. of each window, then use that information to customize your .sgisession
  451. or .xsession files.
  452.  
  453. For more information see Chapter 3 of the X Window System User's Guide,
  454. (Vol. 3 of the O'Reilly series)
  455.  
  456. There are two tools that may help: 'xtoolplaces', which was posted to
  457. volume 14 of comp.sources.x
  458. (ftp.uu.net:/usenet/comp.sources.x/volume14/xtoolplaces/), and David
  459. Hinds' 'xscript', which is at cb-iris.stanford.edu:/pub/.
  460.  
  461. ------------------------------
  462.  
  463. Subject:   -12- Sometimes an extra 4Dwm is running, using a lot of the
  464.                 CPU.  Is this necessary?
  465. Date: 07 May 93 00:00:01 EST
  466.  
  467. No, there should only be one.  This multiple window manager problem
  468. usually is triggered by the "kill" feedback of the window manager when
  469. a user logs out.  The workaround for the problem is to remove the
  470. "kill" feedback.
  471.  
  472. The "kill" feedback is controlled by the resource "showFeedback."  For
  473. 4Dwm, this resource is defined in /usr/lib/X11/app-defaults/4DWm as:
  474.  
  475.   *showFeedback:       behavior restart quit kill
  476.  
  477. Modify the resource to read:
  478.  
  479.   *showFeedback:       behavior restart quit
  480.  
  481. For mwm, set a "showFeedback" resource that does not include the "kill"
  482. feedback in /usr/lib/X11/app-defaults/Mwm.  A sample setting is:
  483.  
  484.   Mwm*showFeedback:  move placement resize behavior restart quit
  485.  
  486. ------------------------------
  487.  
  488. Subject:   -13- I'm running IRIX 4.0.1, and can't log in correctly.
  489.                 After logging in the screen turns blue then goes back to
  490.                 Pandora.
  491. Date: 07 May 93 00:00:01 EST
  492.  
  493. The problem is caused by an incorrect shutdown.  When you log out, xdm
  494. runs /usr/sbin/gamma and writes the current value to
  495. /etc/config/system.glGammaVal.  IRIX buffers this data in main memory
  496. in the buffer cache.  If the system is powered off right after logout,
  497. the data is not written to the file.
  498.  
  499. a) Login to your system as root, either via the network or
  500.    by taking the machine down to single-user mode.
  501.  
  502. b) enter these commands at the # prompt:
  503.  
  504.    # cd /etc/config
  505.    # cat system.glGammaVal
  506.  
  507. If the cat command returns a value of 1.7000, contact your technical
  508. support provider for additional troubleshooting.  If the command
  509. returns nothing (empty file) or "0", it means the problem can be fixed
  510. by entering the following command:
  511.  
  512.   # /bin/rm system.glGammaVal
  513.   # /bin/echo "1.7" > system.glGammaVal
  514.  
  515. Check your work:
  516.  
  517.   # cat system.glGammaVal
  518.  
  519. The command above should now return 1.7.
  520.  
  521. Your login should now be successful. If you edited the file while
  522. Pandora was running, you'll find the first login attempt will fail, but
  523. any later attempts will be successful. After the first login attempt,
  524. Pandora will read in the correct gamma value.
  525.  
  526. ------------------------------
  527.  
  528. Subject:   -14- How do I run 'xinit' manually, (not automatically from
  529.                 'xdm')?
  530. Date: 07 May 93 00:00:01 EST
  531.  
  532. Note that this change would affect all users.
  533.  
  534. 1) log in as root
  535. 2) Type:
  536.    /usr/gfx/stopgfx
  537.    chkconfig xdm off.
  538. 3) all users need to copy /usr/bin/X11/X to their home directory
  539.    (renaming the file to .xserverrc), removing the if test for
  540.    windowsystem, OR be familiar enough with xinit to have an alternate
  541.    command line.
  542. 4) transfer all startup programs from .xsession/.sgisession to .xinitrc.
  543. 5) the last program to start from .xinitrc must not exit.  When this
  544.    one exits, the session terminates.
  545.  
  546. ------------------------------
  547.  
  548. Subject:   -15- How do I start X on a remote host with no users logged
  549.                 in?
  550. Date: 07 May 93 00:00:01 EST
  551.  
  552. This example starts up an xclock on the remote system.  The easy way to
  553. test this for now is to rlogin to the system and type the commands.
  554. Once something works you can write some shell scripts and use rsh to
  555. run them:
  556.  
  557. hydra is being used to login to oscar and start graphics on oscar.
  558. oscar is displaying the pandora login when this is done:
  559.  
  560. hydra 2% rlogin oscar -l root
  561. oscar 1# /usr/gfx/stopgfx     (screen blanks)
  562. oscar 2# chkconfig windowsystem on
  563. oscar 3# setenv DISPLAY :0.0  (display on local screen)
  564. oscar 4# /usr/bin/X11/X &  (start Xsgi)
  565. oscar 5# xclock &  (clock is displayed)
  566.  
  567. To clean up:
  568.  
  569. oscar 6# /usr/gfx/stopgfx     (screen blanks)
  570. oscar 7# /usr/gfx/startgfx  (re-start pandora)
  571.  
  572. ------------------------------
  573.  
  574. Subject:   -16- What do the errors in my 'xdm-errors' file mean?
  575. Date: 07 May 93 00:00:01 EST
  576.  
  577. It depends on the error message, obviously.  Some are:
  578.  
  579.   unable to load display mode, rnid = 196614, errno = 22
  580.   Failed to unbind rn from clip, rnid = 3,errno = 22
  581.   bogus window id in rrm request type(2)
  582.  
  583. These are messages related to the communication between the rrm layer
  584. in the kernel and the X server.  The messages usually occur when a GL
  585. window is being destroyed in a sequence that the X server did not
  586. expect.  They are quite benign.
  587.  
  588. ------------------------------
  589.  
  590. Subject:   -17- How do I log into pandora without bringing up graphics?
  591. Date: 07 May 93 00:00:01 EST
  592.  
  593. In IRIX 3.3 you could specify the "NOGRAPHICS" option on the login
  594. screen.  The "NOGRAPHICS" option has been replaced with the keyword
  595. "failsafe" that is typed after the users name on the login screen.
  596. However, this command no longer brings up a "textport" window without
  597. graphics.  Instead, it now starts a single xwsh on the center of the
  598. screen with no window manager.  Example login:
  599.  
  600.   login: root failsafe
  601.  
  602. ------------------------------
  603.  
  604. Subject:   -18- How do I start and stop the graphics system?
  605. Date: 07 May 93 00:00:01 EST
  606.  
  607. Use /usr/gfx/startgfx and /usr/gfx/stopgfx.  Be aware that stopgfx will
  608. kill any active windows and log you out.  Under IRIX 3.* use
  609. /etc/gl/restartgl.
  610.  
  611. ------------------------------
  612.  
  613. Subject:   -19- How can I kill the X server without logging in or
  614.                 rebooting?
  615. Date: 22 Jan 94 00:00:01 EST
  616.  
  617. Hold down the left-Control, left-Shift, F12 and keypad slash keys.
  618. This is fondly known as the "Vulcan Death Grip".
  619.  
  620. ------------------------------
  621.  
  622. Subject:   -20- Pandora won't come up, and /usr/adm/SYSLOG says
  623.                 "helvetica font missing"
  624. Date: 07 May 93 00:00:01 EST
  625.  
  626. It appears that the subsystem, "eoe2.sw.fonts" did not get loaded.
  627. Re-install the subsystem using the following sequence from 'inst':
  628.  
  629. 1) type "inst" or boot the mini-root, as documented in Section 4.5
  630.    of the "IRIS Software Installation Guide"
  631. 2) keep *
  632. 3) set neweroverride on
  633. 4) install eoe2.sw.fonts
  634. 5) exit
  635.  
  636. ------------------------------
  637.  
  638. Subject:   -21- How do I restart the console?
  639. Date: 07 May 93 00:00:01 EST
  640.  
  641. Use /usr/sbin/startconsole.  In IRIX 3.*, use /etc/gl/startconsole.
  642.  
  643. ------------------------------
  644.  
  645. Subject:   -22- What are resources?
  646. Date: 07 May 93 00:00:01 EST
  647.  
  648. Basically, resources are "attributes" that control the look and feel of
  649. an application. Resources include color, fonts, size, location, and
  650. more.  Resources can have a complex format for binding strengths.
  651.  
  652. For a complete description of resources, including a description of
  653. "loose" and "tight" bindings, consult a book listed in the bibliography
  654. question.
  655.  
  656. ------------------------------
  657.  
  658. Subject:   -23- How do I set resources?
  659. Date: 07 May 93 00:00:01 EST
  660.  
  661. There are many ways to set resources. Resources may be listed in files
  662. or contained in a data base. Consult a book on X as well as the xrdb(1)
  663. manpage for detailed descriptions.  Generally speaking, if xrdb is not
  664. used, resource files are specified through environment variables.
  665. "What is a good approach to take in looking for resources?" addresses
  666. the precedence of these files and variables.
  667.  
  668. For some examples, see the file
  669. /usr/tutor/Customize/example.Xdefaults.
  670.  
  671. ------------------------------
  672.  
  673. Subject:   -24- How do I know what resources I can set for an
  674.                 application?
  675. Date: 07 May 93 00:00:01 EST
  676.  
  677. The most common place to find resource variables for a particular
  678. application is in the man page for that application.
  679.  
  680. For example, take a look at the man page for `xwsh'.  Look for the
  681. section heading called `RESOURCES'.  This section lists each resource
  682. for `xwsh', and in some cases, the valid values for that resource.
  683.  
  684. Also, many major applications are built on top of the Xt toolkit. There
  685. are standard resources that these applications recognize. For a more
  686. complete description, see one of the books on Xt listed in the
  687. bibliography.
  688.  
  689. ------------------------------
  690.  
  691. Subject:   -25- How do I run the same program twice with different
  692.                 attributes?
  693. Date: 07 May 93 00:00:01 EST
  694.  
  695. To accomplish this task, you need to take advantage of the "instance vs
  696. class" concept. This concept is explained further in most books on Xt.
  697.  
  698. Many applications have a resource that lets you to give it a unique
  699. name.  For example, from the xwsh man page :
  700.  
  701. -name instance-name
  702.       Provide a unique name for an xwsh window.  This name becomes
  703.       the instance name of the specific xwsh, with the class name
  704.       always being "XWsh".
  705.  
  706. Using the -name option allows you to give "names" to different
  707. instances of xwsh and assign different resources to each one.  So if
  708. you want two different xwsh's with different resource sets, give them
  709. two different names, say howdymom and howdydoody, for example.  Add the
  710. following to your ~/.Xdefaults file (if you use .Xdefaults) :
  711.  
  712.   howdymom*foreground:       SeaGreen
  713.   howdydoody*foreground:     SGIBeet
  714.  
  715. Now all you have to do is start them up :
  716.  
  717.   xwsh -name howdymom&
  718.   xwsh -name howdydoody&
  719.  
  720. ------------------------------
  721.  
  722. Subject:   -26- Does the GL recognize resources?
  723. Date: 07 May 93 00:00:01 EST
  724.  
  725. Yes. In IRIX 4.0 and later, the GL responds to several X resources,
  726. allowing run-time control over some aspects of GL programs.
  727.  
  728. The man page assumes you are somewhat familiar with X resources, if you
  729. are not, you should read some X documentation such as Volume 3 of the
  730. O'Reily X books.
  731.  
  732. The GL uses resources names with the prefixes
  733.  
  734.   appname.gl.                (instance prefix)
  735.   Appname.GL.                (class prefix)
  736.  
  737. where appname and Appname are derived from the argument to the GL
  738. program's first call to winopen(3G) upper case.
  739.  
  740. For complete information see the man page for GLRESOURCES.
  741.  
  742. ------------------------------
  743.  
  744. Subject:   -27- How can I emulate a Meta key using xwsh?
  745. Date: 10 Dec 93 00:00:01 EST
  746.  
  747. Shankar Unni <shankar@wpd.sgi.com> says:
  748. In order to have "Meta" keys with xwsh, you first need to set its
  749. keyboard type to "xlib" (the "raw" keyboard). Then, you need to bind
  750. all the ALT-combinations to your taste. Here is my personal
  751. app-defaults file for XWsh:
  752.  
  753. ================== cut here ======================
  754.  
  755. XWsh*keyboardType: xlib
  756.  
  757. ! This determines what characters are treated as a "word" when doing a
  758. ! double-click. I have it set so that any character that is in a file-
  759. ! name or E-mail address (!%$*+-./@) is picked up as a word char.
  760. XWsh*CharClass:33:48,36-37:48,42-43:48,45-47:48,64:48,126:48
  761.  
  762. XWsh*keyMapping2:                \
  763.     a(Alt_L): send("\033a");             \
  764.     b(Alt_L): send("\033b");             \
  765.     [etc ...]
  766.     z(Alt_L): send("\033z");             \
  767.     A(Alt_L,Shift_L): send("\033A");        \
  768.     B(Alt_L,Shift_L): send("\033B");        \
  769.     [etc ...]
  770.     Z(Alt_L,Shift_L): send("\033Z");        \
  771.     0(Alt_L): send("\0330");             \
  772.     1(Alt_L): send("\0331");             \
  773.     [etc ...]
  774.     9(Alt_L): send("\0339");             \
  775.     period(Alt_L): send("\033.");        \
  776.     underscore(Alt_L,Shift_L): send("\033_");    \
  777.     bracketleft(Alt_L): send("\033[");        \
  778.     asterisk(Alt_L,Shift_L): send("\033*");    \
  779.     numbersign(Alt_L,Shift_L): send("\033#");    \
  780.     less(Alt_L,Shift_L): send("\033<");        \
  781.     equal(Alt_L): send("\033=");        \
  782.     greater(Alt_L,Shift_L): send("\033>");    \
  783.     Escape(Alt_L): send("\033\033");        \
  784.     BackSpace(Alt_L): send("\033\010");        \
  785.     Return(Alt_L): send("\015\001");
  786.  
  787. ================== cut here ======================
  788.  
  789. ------------------------------
  790.  
  791. Subject:   -28- How do I find out what fonts are available?
  792. Date: 07 May 93 00:00:01 EST
  793.  
  794. The xfontsel and xlsfonts utilities help you find appropriate fonts.
  795. xlsfonts lists the fonts; xfontsel provides an interface for selecting
  796. a desired font. To use xfontsel, choose "Font Names" from the
  797. Customization rollover menu in the Toolchest.  Please see the man pages
  798. and the IRIS Utilities Guide for further information.
  799.  
  800. ------------------------------
  801.  
  802. Subject:   -29- Does SGI provide any tools to help with the
  803.                 customization process?
  804. Date: 07 May 93 00:00:01 EST
  805.  
  806. Yes. The Customization rollover menu in the Toolchest contains three
  807. entries: Window Info, Color Names, and Font Names.  Please refer to the
  808. man pages on these commands for details: xfontsel, xlsfonts, xwininfo,
  809. xdpyinfo, xprop, appres, listres, and xrdb.
  810.  
  811. Also, see the "WorkSpace User's Guide" and the example files in
  812. /usr/tutor/Customize.
  813.  
  814. ------------------------------
  815.  
  816. Subject:   -30- What is a good approach to take in looking for
  817.                 resources?
  818. Date: 07 May 93 00:00:01 EST
  819.  
  820. The following is a recommended list  of steps to take when searching
  821. for a resource, binding, behavior, etc.
  822.  
  823.  1) Look in the 4.0 Transition Guide.
  824.  2) Look in /usr/tutor/Customize.
  825.  3) Look in /usr/demos.
  826.  4) Look in ~4Dgifts.  (Available with the development option.)
  827.  5) If the client you are interested in is a GL client, see the
  828.     man page for GLRESOURCES.
  829.  6) Look in /usr/lib/X11/app-defaults/ClientName.
  830.  7) Look in /usr/lib/X11/system.* .
  831.  8) Look through the man page for the client you are interested in.
  832.  9) Look in O'Reilly & Associates Vol. III. It has many gems
  833.     pertaining to standard X clients.
  834. 10) Look in the documentation that came with your application.
  835. 11) Look in the OSF Motif manuals.
  836. 12) Post to comp.windows.x if you can not find
  837.     an answer using steps 1 through 11.
  838.  
  839. ------------------------------
  840.  
  841. Subject:   -31- What is the precedence for resource files?
  842. Date: 07 May 93 00:00:01 EST
  843.  
  844. The following list indicates the weight of set resources.
  845. Items at the top have the greatest weight.
  846.  
  847. 1) Hard coded values for resources.
  848. 2) Command line arguments.
  849. 3) Resources pointed to by $XENVIRONMENT.
  850. 4) Resource values loaded into the Resource Data Base via xrdb.
  851. 5) Resources pointed to by other environment variables :
  852.  
  853.    IF $XUSERFILESEARCHPATH is set
  854.  
  855.      then it contains a list of directories to search.
  856.  
  857.    ELSE IF $XAPPLRESDIR is set
  858.     
  859.      it contains a single directory, and a short list of related
  860.      directories (e.g. adjusted for language) is where resource
  861.      files must be found.
  862.     
  863.    ELSE
  864.     
  865.      Look in a short list of places related to $HOME (e.g. language
  866.      adjusted). This includes files in $HOME that have the name of the
  867.      class of the application.
  868.  
  869. 6) Resource values set in $HOME/.Xdefaults, provided that the
  870.    RESOURCE_MANAGER property hasn't been set via the xrdb command.
  871.    (see the third paragraph in the xrdb man page)
  872. 7) Values set in /usr/lib/X11/app-defaults/*.
  873. 8) Values set through through the application's fall back mechanism.
  874.  
  875. ------------------------------
  876.  
  877. Subject:   -32- What files affect the window manager and what is their
  878.                 relationship to each other?
  879. Date: 07 May 93 00:00:01 EST
  880.  
  881. 1) ~/.4Dwmrc, if you have one
  882. 2) /usr/lib/X11/system.4Dwmrc
  883. 3) /usr/bin/X11/4Dwm
  884. 4) /usr/lib/X11/app-defaults/4Dwm
  885. 5) ~/.Xdefaults (or wherever you set resources)
  886.  
  887. When 4Dwm is started, it looks for ~/.4Dwmrc. If it does not exist, it
  888. looks at /usr/lib/X11/system.4Dwmrc. The definitions for button
  889. bindings, menus, etc are contained in these files. For a better
  890. description of bindings, look in /usr/tutor/Customize/example.4Dwmrc
  891. and /usr/people/ 4Dgifts/.4Dwmrc. Also see the man pages for 4Dwm.
  892.  
  893. The resource set for the bindings will actually "choose" which binding
  894. definition is set.
  895.  
  896. ------------------------------
  897.  
  898. Subject:   -33- Do I need my own .4Dwmrc file?
  899. Date: 07 May 93 00:00:01 EST
  900.  
  901. Not necessarily. As mentioned in the previous question, actual bindings
  902. are determined by resource names. If there is a binding definition in
  903. /usr/lib/X11/system.4Dwmrc that you like, you may choose it by setting
  904. the appropriate resource.
  905.  
  906. ------------------------------
  907.  
  908. Subject:   -34- Can I run different window managers?
  909. Date: 07 May 93 00:00:01 EST
  910.  
  911. In Irix 4D1-4.0, you may choose 4Dwm, mwm, twm, or uwm. Note that GL
  912. programs are guaranteed to work only under 4Dwm.
  913.  
  914. ------------------------------
  915.  
  916. Subject:   -35- How do I choose a different window manager as the
  917.                 default?
  918. Date: 07 May 93 00:00:01 EST
  919.  
  920. You must use a .xsession file and explicitly invoke the window manager
  921. and any other applications you want to use, such as 'toolchest' and
  922. 'xwsh'.
  923.  
  924. After making this change, you may only be able to log out by using the
  925. "Log Out" selection in the toolchest, or by executing
  926. /usr/bin/X11/endsession.
  927.  
  928. Here are the contents of a sample .xsession file:
  929.  
  930.     xhost + &
  931.     toolchest -name ToolChest > /dev/console 2&>1 &
  932.     winterm -bg red &
  933.     winterm -bg blue &
  934.     mwm > /dev/console 2&>1 &
  935.     /usr/bin/X11/reaper
  936.  
  937. Note that 'reaper' is not put into the background.  When 'reaper' exits
  938. you will be logged out.
  939.  
  940. Alternatively, you can do the following steps:
  941.  
  942. 1. cp /usr/lib/X11/xdm/Xsession ~/.xsession
  943.  
  944. 2. Remove the lines in ~/.xsession that say:
  945.  
  946.    if [ -r $xsession -a "$0" != $xsession ]; then
  947.     if [ -x $xsession ]; then
  948.         exec $xsession
  949.     else
  950.         exec /bin/sh $xsession
  951.     fi
  952.    fi
  953.  
  954. 3. Change the line that says
  955.  
  956.    /usr/bin/X11/4Dwm >/dev/console 2>&1 &
  957.  
  958.    to
  959.  
  960.    /usr/bin/X11/mwm > /dev/console 2>&1 &
  961.  
  962. ------------------------------
  963.  
  964. Subject:   -36- Where can I learn more about the Window Manager
  965.                 behavior?
  966. Date: 07 May 93 00:00:01 EST
  967.  
  968. The man pages for 4Dwm and mwm contain a wealth of information on the
  969. window manager. There are also online files. You may want to read
  970. /usr/tutor/Customize/example.4Dwmrc as well as
  971. /usr/people/4Dgifts/.4Dwmrc (if you have the IDO option).  The
  972. OSF/Motif manuals listed in the bibliography are also good places to
  973. find information. (4Dwm is based on mwm).
  974.  
  975. ------------------------------
  976.  
  977. Subject:   -37- How do I recover from a failed window manager
  978.                 customization attempt?
  979. Date: 07 May 93 00:00:01 EST
  980.  
  981. If your attempt at customization leaves you in a state where buttons
  982. and menus are no longer recognized, you can recover by pressing the
  983. <Alt><CTRL><Shift><!>keys simultaneously. A menu appears that will let
  984. you choose Motif, Iris, or user defaults. Choose either Motif or Iris
  985. defaults and then push OK. This restarts the window manager to a usable
  986. state.
  987.  
  988. ------------------------------
  989.  
  990. Subject:   -38- What is the difference between .xsession and
  991.                 .sgisession?
  992. Date: 07 May 93 00:00:01 EST
  993.  
  994. The system Xsession file (/usr/lib/X11/xdm/Xsession or Xsession-remote)
  995. starts up a number of important things when you log in, eg. 4Dwm,
  996. toolchest, loads resources, sets your XUSERFILESEARCHPATH, sets your
  997. root background, etc.
  998.  
  999. One of the last things it does is look in your home directory for a
  1000. .sgisession file.  This allows you to start additional programs at
  1001. login time. This is the file that you would use to start a mailbox,
  1002. additional window, a calendar, etc.
  1003.  
  1004. ADVANTAGES OF $HOME/.sgisession :
  1005.  
  1006.     1) You don't need to read through yet another system file to see
  1007.        what you need or don't need.
  1008.  
  1009.     2) You can override some of the defaults the system default has
  1010.        given you.
  1011.  
  1012. DISADVANTAGES OF $HOME/.sgisession :
  1013.  
  1014.     1) You cannot override ALL of the defaults set for you.
  1015.     
  1016.     2) Some things you can't change from a .sgisession file :
  1017.  
  1018.        A) You can't start a different window manager.
  1019.        B) You can't change the way the console starts.
  1020.        C) You can't change toolchest output redirection to
  1021.       the console.
  1022.  
  1023.     3) Users of other vendors' equipment are used to seeing a .xsession
  1024.        file.
  1025.  
  1026. After checking for a "failsafe" (ie. no graphics) login, one of the
  1027. first things that /usr/lib/X11/xdm/Xsession does is check for
  1028. $HOME/.xsession.  If it exists, Xsession will exec your .xsession
  1029. file.  This means that if you are REALLY sure you know what you are
  1030. doing, you can login with a different window manager, xterm as a
  1031. console, or xwsh not already iconified, etc.  You can also turn off the
  1032. toolchest output redirection, and start anything else you might have
  1033. done in $HOME/.sgisession. There is a discussion on xsession files in
  1034. volume 3 of the O'Reilly series.
  1035.  
  1036. This next part might be redundant
  1037.  
  1038. >From the login event sequence mentioned earlier, you will note that
  1039. /usr/lib/X11/xdm/Xsession tries to exec $HOME/.xsession if it exists.
  1040. This is how you would go about changing programs started by default. An
  1041. example is the start of the window manager. There is a discussion on
  1042. xsession files in volume 3 of the O'Reilly series. For examples of
  1043. alternate xsession files look at /usr/people/4Dgifts/.xsession or
  1044. /usr/demos/.xsession.
  1045.  
  1046. If you don't have a $HOME/.xsession file, /usr/lib/X11/xdm/Xsession
  1047. starts things for you and eventually looks for $HOME/.sgisession.  This
  1048. is a good way to start additional programs without changing what is
  1049. started by default.
  1050.  
  1051. ------------------------------
  1052.  
  1053. Subject:   -39- After copying /usr/lib/X11/xdm/Xsession to .xsession, I
  1054.                 can't log in.
  1055. Date: 07 May 93 00:00:01 EST
  1056.  
  1057. After copying this file to your home directory, you need to remove all
  1058. references to "xsession". References to xsession cause the system to
  1059. try to execute $HOME/.xsession, which will create an infinite loop.
  1060.  
  1061. Remove the lines in ~/.xsession that say:
  1062.  
  1063. if [ -r $xsession -a "$0" != $xsession ]; then
  1064.        if [ -x $xsession ]; then
  1065.            exec $xsession
  1066.        else
  1067.            exec /bin/sh $xsession
  1068.        fi
  1069. fi
  1070.  
  1071. ------------------------------
  1072.  
  1073. Subject:   -40- What are the important login and resource files for IRIX
  1074.                 4D1-4.0?
  1075. Date: 07 May 93 00:00:01 EST
  1076.  
  1077. The following three file groupings indicate where files that affect
  1078. your login session reside.
  1079.  
  1080. 1) /usr/lib/X11/* - This is THE starting place. Here you find the
  1081. system default bindings for Motif, 4Dwm, and the Toolchest. The xdm
  1082. directory lives here as well as the app-defaults directory. xdm
  1083. controls the session management.Many application defaults are set in
  1084. the app-defaults directory.
  1085.  
  1086. 2) $HOME/[.Xdefaults, .4Dwmrc, .chestrc, .xsession, .sgisession] Here
  1087. you find the files that control your system set-up.  You create these
  1088. files; they don't exist when you first log in.
  1089.  
  1090. 3) /usr/bin/X11 - This is where the binaries live. It makes life nice
  1091. to include this directory in your path.
  1092.  
  1093. ------------------------------
  1094.  
  1095. Subject:   -41- What is the sequence of events that occur at login time?
  1096. Date: 10 Dec 93 00:00:01 EST
  1097.  
  1098. This is a bare bones synopsis of the events that occur when
  1099. you log in to the console via xdm (xdm is the default method
  1100. of logging in).
  1101.  
  1102.  1) Provide a "failsafe" (nographics) login if required/requested.
  1103.  2) Exec $HOME/.xsession if it exists. If it exists, the remaining
  1104.     steps should normally be included in the users .xsession file as
  1105.     well.
  1106.  3) Load $HOME/.Xresources if it exists.
  1107.  4) Set XUSERFILESEARCHPATH.
  1108.  5) Incorporate a "shell" environment
  1109.     into the "session". (man userenv)
  1110.  6) Set the root background and cursor.
  1111.  7) Disable display access control (xhost +).  (man xhost)
  1112.  8) Start 4Dwm.
  1113.  9) Wait for 4Dwm to come up.
  1114. 10) Start the console.
  1115. 11) Execute $HOME/.sgisession if it exists.
  1116. 12) Start WorkSpace if the user wants it.
  1117. 13) Put a Toolchest on each screen.
  1118. 14) Exec the "reaper". (man reaper / endsession)
  1119.  
  1120. ------------------------------
  1121.  
  1122. Subject:   -42- Why do 4Dwm, toolchest, Workspace, etc. not recognize an
  1123.                 environment variable I set in my shell's startup files?
  1124. Date: 06 Mar 94 00:00:01 EST
  1125.  
  1126. The script /usr/lib/X11/xdm/Xsession (or, if you have one, your own
  1127. ~/.xsession) runs when you log in and starts your window manager
  1128. (4Dwm), Workspace, etc. To give these programs a copy of the
  1129. environment you define in your shell's startup files, Xsession first
  1130. runs 'userenv', which runs your shell just to see what environment
  1131. variables your shell's startup files set and puts them into Xsession's
  1132. environment.  Later on Xsession runs 4Dwm, Workspace, etc. and they
  1133. inherit Xsession's environment including the environment variables
  1134. which 'userenv' got from your shell's startup files.
  1135.  
  1136. However, 'userenv' objects to 1) errors in your shell startup files, 2)
  1137. commands which print output to the terminal and 3) commands like 'stty'
  1138. and 'tset', which expect to be connected to a terminal.  Any of these
  1139. may cause 'userenv' to give up completely, so that Xsession, 4Dwm,
  1140. Workspace, etc. do not get any of your shell's enviroment.
  1141.  
  1142. To get 'userenv' to work, you must 1) make sure that your shell startup
  1143. files are error-free and 2) protect 'userenv' from commands which print
  1144. output or expect to be connected to a terminal by testing for the
  1145. ENVONLY environment variable before running them. (See the userenv(1)
  1146. manpage.) You might try disabling your shell startup files (or parts
  1147. thereof) one by one to narrow down which is causing the problem.  Be
  1148. sure to check both personal and system-wide shell startup files! See
  1149. your shell's manpage for a complete list.
  1150.  
  1151. Note that each terminal window (aka 'winterm', 'xwsh' or 'xterm') runs
  1152. a fresh copy of your shell, so it has a second chance to set your
  1153. environment variables. Your shell is now connected to a terminal and
  1154. 'userenv' isn't involved, so none of the above problems apply. The
  1155. environment in a terminal window will appear correct, and programs
  1156. started from a window (e.g. by typing 'workspace' to start Workspace)
  1157. will inherit the environment properly.  Furthermore, 'userenv' often
  1158. appears to work when run inside a terminal window, even when it does
  1159. not work when run from Xsession.  This is all fine, but it doesn't help
  1160. when you log in. One right way to see if 'userenv' is working when it
  1161. should is to add the line 'env > $HOME/test-userenv' to Xsession after
  1162. the line that runs 'userenv', log in and examine the file it creates.
  1163.  
  1164. ------------------------------
  1165.  
  1166. Subject:   -43- Why doesn't the window manager's "Log Out" routine work?
  1167. Date: 09 Jan 94 00:00:01 CST
  1168.  
  1169. "Log Out" runs 'endsession', which under some versions of IRIX 4.0.5
  1170. does not work if your hostname contains a number. Fortunately, 'endsession'
  1171. is a script, and you can fix it by changing the line
  1172.  
  1173.     PROP_DISPLAY=`expr $DISPLAY : '\(.*\).[1-9]' \| $DISPLAY`
  1174.  
  1175. to
  1176.  
  1177.     PROP_DISPLAY=`expr $DISPLAY : '\(.*\)\.[1-9]' \| $DISPLAY`
  1178.  
  1179. i.e. just add a backslash before the second period.
  1180.  
  1181. ------------------------------
  1182.  
  1183. Subject:   -44- Where is the default value of PATH set?
  1184. Date: 10 Dec 93 00:00:01 EST
  1185.  
  1186. Every program which allows a user to log in (telnet, rlogin, pandora,
  1187. etc.) can specify PATH. Shells may as well if it isn't already set.
  1188. There are many slightly different default values, and relying on them
  1189. is a good way to get confused. The only reliable method is to set PATH
  1190. in your shell's startup files. These are different for each shell, and
  1191. are described in each shell's manpage. Beware of 'ksh', which has an
  1192. internal, invisible default path ('/bin:/usr/bin') which it uses when
  1193. PATH is not set.
  1194.  
  1195. ------------------------------
  1196.  
  1197. Subject:   -45- How can I convert RGB bitmaps to & from other formats?
  1198. Date: 22 Feb 94 00:00:01 EST
  1199.  
  1200. Several bitmap conversion tools are shipped with IRIX.  The executables
  1201. are part of the eoe2.sw.imagetools subsystem, and include:
  1202.  
  1203. fromalias - convert an Alias image to an IRIS image
  1204. frombin - create an RGB IRIS image file from a binary dump of image data
  1205. fromcmap - convert a color map into an image with one scanline
  1206. fromcube - convert a Cubicomp/Vertigo image file to IRIS format
  1207. fromdi - convert an old .di dithered image into an IRIS image
  1208. fromface - convert a UNIX faceserver image into an IRIS image
  1209. fromgif - convert a GIF image into an IRIS image
  1210. frommac - convert a MacPaint image into an IRIS image
  1211. frompic - convert a MOVIE BYU .PIC image to an IRIS image
  1212. fromppm - convert an image in Jef Poskanzer's format into an IRIS image
  1213. fromrla - convert a Wavefront image to an IRIS image
  1214. fromsun - convert a sun image into an IRIS image
  1215. fromtarga - convert a targa image into an IRIS image
  1216. fromxbm - convert an X Bitmap image into an IRIS image
  1217. fromxud - convert an xwd file into an IRIS image
  1218. fromxwd - convert an xwd file into an IRIS image
  1219. fromyuv - convert an Abekas yuv image into an IRIS image
  1220. toalias - convert an IRIS image to an Alias image
  1221. toascii - convert an IRIS image to text characters
  1222. tobin - convert an IRIS image to binary dump of pixel data
  1223. tobw - convert an IRIS image to black and white
  1224. togif - convert an IRIS image to a Compuserve GIF image
  1225. tomac - convert an IRIS image to MacPaint format
  1226. tonews - convert an IRIS image into NeWS format
  1227. topict - convert an IRIS image to Macintosh PICT format
  1228. toppm - convert an IRIS image file into Jef Poskanzer's ppm image format
  1229. tops - convert an IRIS image to PostScript
  1230. toscitex - Convert IRIS images into Scitex CT2T images
  1231. tosun - convert an IRIS image to a sun raster file
  1232. totarga - convert an IRIS image to a type 2 targa image
  1233. toyuv - convert an IRIS image to yuv format
  1234.  
  1235. The source for each of these tools is shipped in the 4Dgifts
  1236. dev.dev_sw.giftsfull package and placed in the directory
  1237. /usr/people/4Dgifts/iristools/imgtools.  Each also has a man page.
  1238.  
  1239. Similar tools for more formats (frompict, frompixar, fromtiff,
  1240. fromutah, totiff, toutah and toxbm at last count), as well as some of
  1241. the ones that come with IRIX and a few miscellaneous cool image editing
  1242. tools, are in ftp.sgi.com:/graphics/bin/. 'fromjpeg' and 'tojpeg' can
  1243. be found in explorer.dgp.toronto.edu:/pub/sgi/sgijpeg/.
  1244. swedishchef.lerc.nasa.gov:/ has 'fromvicar' in /image/conversion/from/,
  1245. 'tocolps' and 'topcl' in /image/conversion/to/ and many other image-
  1246. related tools in nearby directories.
  1247.  
  1248. Finally, 'imgworks' (in the imgtools.sw.tools subsystem) understands
  1249. RGB, TIFF and FIT formats, and several freeware programs including
  1250. SDSC's 'imtools' (in swedishchef.lerc.nasa.gov:/image/conversion/),
  1251. 'xv' (in ftp.cis.upenn.edu:/pub/xv/) and ImageMagick (in
  1252. ftp.x.org:/contrib/) work on SGIs and understand SGI's RGB format as
  1253. well as many other formats.
  1254.  
  1255. ------------------------------
  1256.  
  1257. Subject:   -46- Can I compress RGB bitmaps?
  1258. Date: 07 May 93 00:00:01 EST
  1259.  
  1260. Yes.  Use /usr/sbin/rle, which is part of eoe2.sw.imagetools.
  1261.  
  1262. ------------------------------
  1263.  
  1264. Subject:   -47- How do I make a screen dump?
  1265. Date: 27 Jan 94 00:00:01 EST
  1266.  
  1267. Use the utilities 'snapshot', 'scrsave' or 'imgsnap'. All have
  1268. manpages.  'snapshot' and 'scrsave' are in the eoe2.sw.gltools
  1269. subsystem, 'imgsnap' is in the imgtools.sw.tools subsystem and their
  1270. manpages are in the respective *.man.* subsystems.
  1271.  
  1272. >From within a GL program, you should call readdisplay().  For an
  1273. example look at ~4Dgifts/iristools/imgtools/scrsave.c.
  1274.  
  1275. ------------------------------
  1276.  
  1277. Subject:   -48- Can I use 4Dgifts code in my application?
  1278. Date: 07 May 93 00:00:01 EST
  1279.  
  1280. Yes.  The 4Dgifts are a "gift" and developers are welcome to use the
  1281. code.  However, SGI does not support the code in 4Dgifts.  Note that
  1282. certain restrictions apply.  Please read the copyright statement in
  1283. ~4Dgifts/README.Copyright.
  1284.  
  1285. ------------------------------
  1286.  
  1287. Subject:   -49- What does ERR_WMANIPC mean?
  1288. Date: 07 May 93 00:00:01 EST
  1289.  
  1290. The "WMAN" in that message means "window manager."  However, this 
  1291. no longer means "window manager" such as 4Dwm, but rather the entire 
  1292. X Window system.  The error means that the GL program triggered a
  1293. fatal X error.
  1294.  
  1295. A GL program can get an X error, because all GL programs are actually X
  1296. clients.  When a GL program does a winopen(), libgl actually calls
  1297. XCreateWindow, etc.)
  1298.  
  1299. When a GL program gets an X error, libgl prints out these X errors
  1300. using this error message:
  1301.  
  1302.     GL: X request = maj.min,  error code = ercode
  1303.  
  1304. where
  1305.  
  1306.     maj = major request code that caused the error
  1307.     min = minor request code
  1308.     ercode = X error code
  1309.  
  1310. This turns out to be easy to interpret, so long as the request was a
  1311. core X protocol request (e.g., a CreateWindow request).  In that case:
  1312.  
  1313.     1. You can look up the major code in /usr/include/X11/Xproto.h.
  1314.     2. The minor code is not used.
  1315.     3. The X error code can be found in /usr/include/X11/X.h.
  1316.  
  1317. As you can see in Xproto.h, the core X protocol requests have request
  1318. codes <= 127.
  1319.  
  1320. However, if maj > 127, then the request is an X extension request.
  1321. Unfortunately, it can be difficult to interpret this unless you built
  1322. your program with a debugging libgl.a (compiled with -g).  The reason
  1323. is that for an X extension, the major request code and the starting
  1324. error code are copied from the X server during client startup, and
  1325. these codes are saved in variables inside libgl.  With a debugging
  1326. libgl, these variables can be printed out from within a debugger, such
  1327. as dbx.
  1328.  
  1329. If the major code indicates an X Input extension request, then the
  1330. minor numbers then tell the X input request type, and these are found
  1331. in /usr/include/X11/extensions/XIproto.h.
  1332.  
  1333. Finally, the X Input Extension uses 132 as its "starting error code."
  1334. The possible errors are found in /usr/include/X11/extensions/XI.h,
  1335. where they're defined like this:
  1336.  
  1337.     #define XI_BadDevice   0
  1338.     #define XI_BadEvent    1
  1339.     #define XI_BadMode     2
  1340.     #define XI_DeviceBusy  3
  1341.     #define XI_BadClass    4
  1342.  
  1343. If you add 132 to these numbers, you get the error that's reported by
  1344. the libgl error message.
  1345.  
  1346. ------------------------------
  1347.  
  1348. Subject:   -50- How can I translate screen (x,y) coords into world
  1349.                 (x,y,z) coords?
  1350. Date: 07 May 93 00:00:01 EST
  1351.  
  1352. Check the manual page for mapw(3G) or mapw2(3G).  mapw() returns a line
  1353. into (x,y,z) space.
  1354.  
  1355. ------------------------------
  1356.  
  1357. Subject:   -51- How can I translate world (x,y,z) coords into screen
  1358.                 (x,y) coords?
  1359. Date: 07 May 93 00:00:01 EST
  1360.  
  1361. There are two methods.  The first method is detailed in
  1362. ~4Dgifts/examples/grafix/world2scrn.c, which is part of the
  1363. dev.dev_sw.giftsfull package.  It multiplies the (x,y,z) vector into
  1364. the current modeling and projection matrixes, and uses the result to
  1365. interpolate based on the window size and position.
  1366.  
  1367. The second method uses the current cursor position as a trick and is
  1368. much simpler.  Use cmov() to set the cursor position to the point of
  1369. interest in world space, then call getcpos() to return the cursor
  1370. position in screen coordinates.  Note that if your entire viewport is
  1371. off-screen, the results are undefined and you'll have to use the first
  1372. method.
  1373.  
  1374.     float x,y,z;
  1375.     short x1, y1;
  1376.     
  1377.     cmov (x,y,z);
  1378.     getcpos (&x1, &y1);
  1379.  
  1380. ------------------------------
  1381.  
  1382. Subject:   -52- I call mapcolor(index, R, G, B) but nothing happens.
  1383.                 Why?
  1384. Date: 07 May 93 00:00:01 EST
  1385.  
  1386. You either need to call glcompat(GLC_SLOWMAPCOLORS, TRUE) at the
  1387. beginning of your program, or call gflush() after calling mapcolor.
  1388.  
  1389. See the NOTES section in "man mapcolors" and also "man glcompat" for
  1390. further info. (This may also be in the GL release notes)
  1391.  
  1392. ------------------------------
  1393.  
  1394. Subject:   -53- What's wrong with blink()?
  1395. Date: 10 Jun 93 00:00:01 EST
  1396.  
  1397. - blink() is broken all the way up through 4.0.5F, where blink() only
  1398.   blinks to black.
  1399.  
  1400. - you can work-around this blink() problem by doing the following:
  1401.  
  1402.     blink(rate, index, red<<8, green<<8, blue<<8)
  1403.  
  1404. - ~4Dgifts/examples/glpg/ch04/blinker.c has three main problems:
  1405.  
  1406.     - it doesn't do the above work-around.
  1407.     - it doesn't do a gflush after mapping colors.
  1408.     - it doesn't turn blinking off initially.
  1409.  
  1410. - what happens is that if a program starts anything blinking and exits
  1411.   without ever turning blinking off with blink(-1, 0, 0, 0, 0) then the
  1412.   next program to attempt blinking will not be able to blink.  this
  1413.   happens if for instance you close the blinker window before its 10
  1414.   second sleep() has completed.
  1415.  
  1416. - a simple idea for a work-around for this problem: programs which do
  1417.   blinking should turn their blinking on when they have focus; they
  1418.   should turn all blinking off when they lose focus.  This is not
  1419.   perfect but is a plausible attempt at sharing the 20 blinking
  1420.   system-wide colormap entries.
  1421.  
  1422. Here is a copy of ~4Dgifts/examples/glpg/ch04/blinker.c that contains
  1423. the above workarounds, except for input-focus:
  1424.  
  1425. #include <gl/gl.h>
  1426.  
  1427. #define MAXBLINKS       20    /* maximum number of blinking entries */
  1428. #define FIRSTBLINKCI    64    /* avoid the first 64 colors */
  1429.  
  1430. main()
  1431. {
  1432.     int i;
  1433.  
  1434.     prefsize(400, 400);
  1435.     winopen("blinker");
  1436.     ortho2(-0.5, 20.0*MAXBLINKS + 9.5, -0.5, 500.5);
  1437.     color(BLACK);
  1438.     clear();
  1439.  
  1440.     /* always turn blinking off before calling 'blink' */
  1441.     blink (-1, 0, 0, 0, 0);
  1442.  
  1443.     for (i = MAXBLINKS - 1; i >= 0 ; i--) {
  1444.     mapcolor(i + FIRSTBLINKCI, 255, 255, 255);
  1445.     /* always call gflush() after mapcolors() */
  1446.     gflush();
  1447.     color(i + FIRSTBLINKCI);
  1448.     sboxfi(i*20 + 10, 10, i*20 + 20, 490);
  1449.     /* GL bug in blink -- must left-shift r,g,b values */
  1450.     blink(i + 1, i + FIRSTBLINKCI, 255 << 8, 0 << 8, 0 << 8);
  1451.     }
  1452.     sleep(10);
  1453.     blink(-1, 0, 0, 0, 0);      /* stop all blinking */
  1454.     gexit();
  1455.     return 0;
  1456. }
  1457.  
  1458. ------------------------------
  1459.  
  1460. Subject:   -54- When I try to run UIM/X uxserverd, I get an error
  1461.                 message saying, "license file has been modified, cannot
  1462.                 start the UIM/X license server".
  1463. Date: 07 May 93 00:00:01 EST
  1464.  
  1465. You probably have been given a bad key.  The most frequent causes of
  1466. incorrect keys have been incorrect capitalization and incorrect IP
  1467. addresses.
  1468.  
  1469. The program that generates the UIM/X key requires that the "host ID"
  1470. (or IP address) be in hexadecimal format.  If you feed it the standard
  1471. form of IP address (i.e., 123.45.678.90) it will generate the wrong key
  1472. and will not complain.
  1473.  
  1474. To ensure that you are is giving the correct information when
  1475. requesting a UIM/X key, please do the following:
  1476.  
  1477. Hostname:  Type in 'hostname' at the prompt, and be sure to say exactly
  1478. what it says (including capitalization, if any).
  1479.  
  1480. Host ID:  Type in 'hostid' at the prompt, and be sure to say exactly
  1481. what it says.  You will be reading back a series of numbers of the form
  1482. 0xc030c844.  The leading 0x indicates that the following number is
  1483. hexadecimal.
  1484.  
  1485. The key generating script is highly sensitive to capital letters.  Make
  1486. sure you confirm the case of the letters, both when getting the
  1487. hostname/hostid and when having your key read back to you.
  1488.  
  1489. If this still doesn't fix the problem, you may have mixed files between
  1490. UIM/X 1.0 and 2.0.  Completely remove UIM/X, re-install it, and
  1491. reproduce a Uimx2_0.license file with the correct information.
  1492.  
  1493. ------------------------------
  1494.  
  1495. Subject:   -55- What is a GL widget?
  1496. Date: 10 Jun 93 00:00:01 EST
  1497.  
  1498. GL widget refers to the GlxDraw (generic) and GlxMDraw (Motif) widgets
  1499. that allow you to embed GL windows in Xt-based programs.  To embed a GL
  1500. windows in X-based programs is frequently called "Mixed-model" or "GLX"
  1501. programming.
  1502.  
  1503. There are several examples of mixed-model programming in the directory
  1504. /usr/people/4Dgifts/examples/GLX.
  1505.  
  1506. ------------------------------
  1507.  
  1508. Subject:   -56- I'm using the GlxMDraw widget and it doesn't seem that
  1509.                 colors are being installed correctly.  Overlays in the
  1510.                 GlxMDraw widget are displayed in red and gray instead of
  1511.                 the colors I specify.  What is the problem?
  1512. Date: 10 Jun 93 00:00:01 EST
  1513.  
  1514. The window manager must be directed to install all appropriate
  1515. colormaps.  Use the XSetWMColormapWindows() call to do this -- list one
  1516. window for each colormap to be installed plus the top level window.  If
  1517. using overlays, include the overlay window as well as the normal GL
  1518. window.
  1519.  
  1520. If your window is TrueColor, you should still install the appropriate
  1521. colormap, as Indigo TrueColor is simulated using a colormap.
  1522.  
  1523. ------------------------------
  1524.  
  1525. Subject:   -57- I get a "Broken Pipe" error when I close the window of
  1526.                 an X client, such as xman or xterm.  What does this
  1527.                 error mean?  Is there something wrong with my system?
  1528. Date: 10 Jun 93 00:00:01 EST
  1529.  
  1530. Typically the error message resembles the following:
  1531.  
  1532. XIO: fatal IO error 32 (Broken pipe) on X server ":0.0" after 214
  1533. requests (214 known processed) with 0 events remaining.  The connection
  1534. was probably broken by a server shutdown or KillClient.
  1535.  
  1536. The Window Manager is reporting that the pipe for your X client has
  1537. been broken.  This is normal when an X client exits.  There is nothing
  1538. wrong with your system. This message will also occur when the system is
  1539. shut down.  This is not an error condition and no core files are
  1540. produced.
  1541.  
  1542. ------------------------------
  1543.  
  1544. Subject:   -58- Is there a way to switch on the fly between single and
  1545.                 double buffering within a GL widget?
  1546. Date: 10 Jun 93 00:00:01 EST
  1547.  
  1548. There is no way to switch between single and double buffered mode
  1549. within the same window. (In X, this would mean changing the depth,
  1550. which is not allowed.)
  1551.  
  1552. To simulate this, you can create two GL widgets: a double buffered GL
  1553. widget and a single buffered GL widget.  When it is time to change the
  1554. buffering mode, restack the windows so that the appropriate one is on
  1555. top. If the two windows are created with a common parent, they move
  1556. together when the parent is moved.
  1557.  
  1558. For non-mixed mode applications, the GL performs this switching when
  1559. you call gconfig().
  1560.  
  1561. ------------------------------
  1562.  
  1563. Subject:   -59- Why doesn't SGI's xlock lock my screen?
  1564. Date: 10 Jun 93 00:00:01 EST
  1565.  
  1566. If you or the super-user do not have a password, xlock will not lock.
  1567. Also, in IRIX 4.x, xlock is set up by default to act as if invoked with
  1568. the "-nolock" option, which tells it not to lock the screen.  If you
  1569. want force xlock to lock, do either of the following:
  1570.  
  1571. a) Use the "+nolock" option when invoking xlock.  This means
  1572.    "not nolock" (the opposite of "-nolock").  For example:
  1573.  
  1574.    % xlock +nolock
  1575.  
  1576. b) Add the following line to your ~/.Xdefaults file:
  1577.  
  1578.    XLock.nolock:    False
  1579.  
  1580. In IRIX 5.x, the default behavior of xlock has been reversed, so xlock
  1581. does indeed lock by default.  If you wish to keep the IRIX 4.x
  1582. behavior, invoke xlock with the -nolock option.
  1583.  
  1584. ------------------------------
  1585.  
  1586. Subject:   -60- What about Inventor?
  1587. Date: 10 Dec 93 00:00:01 EST
  1588.  
  1589. Gavin Bell <gavin@sgi.com> maintains an Inventor FAQ. It is archived at
  1590. viz.tamu.edu:/pub/sgi/faq/inventor.
  1591.  
  1592. Miscellaneous Inventor goodies can be found at
  1593. ftp.sgi.com:/sgi/inventor/.  These include a performance guide in
  1594. doc.tar.Z and the release notes for Inventor 2.0 (aka Open Inventor) in
  1595. relnotes.2.0.tar.Z.
  1596.  
  1597. ------------------------------
  1598.  
  1599. Subject:   -61- Why do I get compilation errors when compiling the
  1600.                 Inventor C++ examples, using C++ 3.0?
  1601. Date: 10 Jun 93 00:00:01 EST
  1602.  
  1603. Inventor 1.0 and 1.0.1 were built using the 2.1.1 version of the C++
  1604. compiler.  If you are using C++ 3.0, you must add the "-v2" switch to
  1605. the Makefile's LC++OPTS line.  It would then look like the following:
  1606.  
  1607. # Options to C++; see the CC manual page for what they do LC++OPTS =
  1608. -v2 +p -Wf,-XNp10000
  1609.  
  1610. ------------------------------
  1611.  
  1612. Subject:   -62- Why does the X server sometimes abort when I log out in
  1613.                 IRIX 5.0.1 and IRIX 5.1?
  1614. Date: 01 Oct 93 00:00:01 EST
  1615.  
  1616. BACKGROUND:  Both problems are related to resetting of the X server.
  1617. Normally the X server process is spawned by xdm (the X Display
  1618. Manger).  The X server process continues to run after every login and
  1619. logout of the graphics head; the server simply resets to its initial
  1620. state every time someone logs out.  In X server terminology, the X
  1621. server goes through multiple generations.
  1622.  
  1623. PROBLEM 1:  The dynamically loadable Display PostScript extension has a
  1624. bug where it does not properly reset the X server state on server reset
  1625. (ie, generations other than the first).
  1626.  
  1627. The problem only occurs if you have dps_eoe.sw.xserver_ext (which
  1628. contains /usr/lib/X11/dyDDX/xdps.so which is the dynamically loadable
  1629. Display PostScript extension).  dps_eoe is installed by default.
  1630.  
  1631. This problem affects all CPUs and graphics hardware.
  1632.  
  1633. PROBLEM 2:  If the user logs out while any GL-based application (such
  1634. as buttonfly, WorkSpace, jot, etc) is running, the server will not
  1635. reset.
  1636.  
  1637. Typically you will find errors in /usr/adm/SYSLOG similar to the
  1638. following:
  1639.  
  1640.     date host xdm[pid]: IO Error in XOpenDisplay
  1641.     date host xdm[pid]: Display :0 cannot be opened
  1642.     date host xdm[pid]: Display :0 is being disabled
  1643.     date host xdm[pid]: Rescanning both config and servers files
  1644.  
  1645. WORKAROUND:  As root, edit /usr/lib/X11/xdm/xdm-config and change the
  1646. line
  1647.  
  1648.     DisplayManager._0.terminateServer:      False
  1649.  
  1650. to
  1651.  
  1652.     DisplayManager._0.terminateServer:      True
  1653.  
  1654. (Please note that the contents of xdm-config are case-sensitive.)
  1655. Then restart the window system (/usr/gfx/stopgfx; /usr/gfx/startgfx)
  1656.  
  1657. If the above workaround doesn't work, try setting
  1658.  
  1659.     DisplayManager._0.startAttempts:        1
  1660.  
  1661. to
  1662.  
  1663.     DisplayManager._0.startAttempts:        4
  1664.  
  1665. This change forces xdm to try to start the X server up to four times,
  1666. if the first three fail.
  1667.  
  1668. ------------------------------
  1669.  
  1670. End of sgi/faq/graphics Digest
  1671. ******************************
  1672. -- 
  1673. The SGI FAQ group                                sgi-faq@viz.tamu.edu
  1674. Finger us for info on the SGI FAQs, or look in viz.tamu.edu:/pub/sgi.
  1675.  
  1676.  
  1677.